<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>小票打印</title>
<style type="text/css">
        *{padding:0;margin: 0;font-family:"黑体"; font-size:11px;width:233px;letter-spacing:-1px;}
		
</style>
<link rel="stylesheet" href="Public/images/buttons.css">
</head>
<body>
    <div id="header">
		
			<input  class="button button-highlight button-pill button-large" type="button" name="button_print" value="打印" id="printing">
			<h1 style="font-size:30px">数量：<php> echo count($list); </php></h1><br><br>
	</div>
<volist name="list" id="vo">
<div style="position:relative;">
　　<img src="Public/images/1.jpg" />
	<div style="position:absolute; z-index:2; left:70px; top:153px">
　　　　{$vo.mid}<!--客户号-->
	</div>
</div>
<!--商品列表start-->　
<div style="position:relative;top:-15px;line-height:15px">
<table   >

<volist name="vo" id="v">
<notempty name="v.num">
<tbody>
<tr>
<td style="padding-left:2px;" align="left"   valign="bottom" colspan="3" >&nbsp;&nbsp;&nbsp;&nbsp;{$v.num}&nbsp;@&nbsp;{$v.price} </td>
</tr>
<tr>
<td style="width:25px;padding-left:35px;padding-buttom:25px" valign="top" >{$v.goods_id} </td>
<td style="WORD-WRAP: break-word;width:175px;padding-left:5px;padding-right:10px;letter-spacing:-1px;line-height:10px"   >{$v.ename} </td>
<td valign="top" style="width:63px"  ><php>echo sprintf('%01.2f',$v['num']*$v['price']);</php></td>
</tr>
</tbody>
<tbody>
<tr>
<td  align="left"   valign="bottom" height="20" colspan="3" >&nbsp;&nbsp;&nbsp;&nbsp; </td>
</tr>
</tr>
</tbody>
<php>$vo['tn']+=$v['num'];</php>
</notempty>
</volist>
</table>
</div>
<!--商品列表end-->

<div style="position:relative;top:-15px">
　　<img src="Public/images/2.jpg" />
	<!--total-->
	<div style="position:absolute; z-index:2; left:104px; top:16px">
　　　　<span style="background-color:#000000;color:#fff;width:65px;display:inline-block;">&nbsp;&nbsp;&nbsp;&nbsp;{$vo[0]['total']}&nbsp;</span>
　　</div>
	<!--interac-->
	<div style="position:absolute; z-index:2; left:104px; top:29px;">
　　　　<span >&nbsp;&nbsp;&nbsp;&nbsp;{$vo[0]['total']}&nbsp;</span>
　　</div>
    <!--banck-->
	<div style="position:absolute; z-index:2; left:40px; top:49px">
　　　　<span ><php>echo rand(1000,9999);</php></span>
　　</div>
    <!--order_sn-->
	<div style="position:absolute; z-index:2; left:35px; top:69px">
　　　　<span >66231909-<php>echo substr($vo[0]['order_sn'],3,10)</php></span>
　　</div>
	<div style="position:absolute; z-index:2; left:8px; top:79px">
　　　　<span style="letter-spacing:-1px">753200</span><span style="letter-spacing:-2px"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<php>echo substr(date('m/d/y H:i:s',$vo['date']),0,8);</php>&nbsp;&nbsp;&nbsp;<php>echo substr(date('m/d/y H:i:s',$vo['date']),9,8); </php></span>
　　</div>
	<!--Invoice-->
	<div style="position:absolute; z-index:2; left:25px; top:91px">
　　　　<span ><php>echo rand(10000,99999);</php></span>
　　</div>
	<div style="position:absolute; z-index:2; left:70px; top:201px">
　　　　<span >$&nbsp;{$vo[0]['total']}</span>
　　</div>
	<div style="position:absolute; z-index:2; left:135px; top:286px">
　　　　<span >{$vo.tn}</span>
　　</div>
	<div style="position:absolute; z-index:2; left:-28px; top:308px;letter-spacing:-2px">
　　　　<span style="background-color:#000000;color:#fff;width:65px;display:inline-block;text-align:center"><php>echo date('Y/m/d',$vo['date']);</php></span>&nbsp;&nbsp;&nbsp;<php>echo date('H:i:s',$vo['date']);</php>
　　</div>
</div>　
</volist>




</body>
<script>
	window.onload=function(){
		var printing= document.getElementById("printing");
		var header= document.getElementById("header");
		printing.onclick=function(){
			header.style.display="none";
			window.print();
			header.style.display="block";
		}
	}
</script>
</html>